from django.db import models


# Create your models here.
class User(models.Model):
    # 类属性(字段)
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=20, null=True)
    age = models.IntegerField()

    def __str__(self):
        return f'id = {self.id},name = {self.name},age = {self.age}'
